package com.amir.common.beans

import java.io.Serializable

data class OrderWrapperEntity(
    val data: OrderListData
) : BaseResult()

data class OrderListData(
    val Count: Int,
    val OrderList: List<OrderItem>,
    val PageNo: Int,
    val PageSize: Int
)

data class OrderItem(
    val Buttons: Buttons,
    val RepairInfo: RepairInfo
) : Serializable

data class Buttons(
    val ShowQiangDan: Boolean,
    val ShowAssReject: Boolean,//是否显示拒绝
    val ShowJxc: Boolean,//是否显示领料
    val ShowPay: Boolean,//是否显示付款
    val RepairDoneText: String,//完工上报上的文字
    val ShowRepairDone: Boolean,//是否显示完工上报
    val ShowAssConfirm: Boolean//是否显示接单
) : Serializable


data class RepairInfo(
    var ID: String,
    var Seq: Int,
    var Title: String,
    var Right: String,
    var Items: List<CustomKeyValueItemInfo>?
) : Serializable

data class CustomKeyValueItemInfo(
    var Name: String,
    var Val: String,
    var ValColor: String,
    var Type: String?
) : Serializable

data class RepairInfo2(
    val AppointmentTime: String,
    val CallDescr: String,
    val CallMovie: String,
    val CallPhotos: List<Any>,
    val CallType: Int,
    val CanTel: Boolean,
    val CityName: String,
    val CmpyName: String,
    val CustName: String,
    val HardItem: String,
    val Priority: String,
    val ProvName: String,
    val RepairId: String,
    val Seq: Int,
    val Status: String,
    val Tel: String,
    val TimeOut: String,
    val TownName: String,
    val VirtCharge: String,
    val Zone4: String,
    val Zone5: String
) : Serializable